<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="Expires" content="0">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache-control" content="no-cache">
	<meta http-equiv="Cache" content="no-cache">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script type="text/javascript" src="js/zepto.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			var browser={
				versions:function(){
					var u = navigator.userAgent, app = navigator.appVersion;
					return {         //移动终端浏览器版本信息
						trident: u.indexOf('Trident') > -1, //IE内核
						presto: u.indexOf('Presto') > -1, //opera内核
						webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
						gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
						mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
						ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
						android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
						iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
						iPad: u.indexOf('iPad') > -1, //是否iPad
						webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
						isWeixin:u.indexOf('MicroMessenger') > -1,
						isQQ:u.indexOf('QQ') > -1
					};
				}(),
				language:(navigator.browserLanguage || navigator.language).toLowerCase()
			};
			var path=location.href;
			path=path.substr(path.lastIndexOf('/')+1);
			path=path.split('.')[0];
			
			if(!browser.versions.mobile){
				$.ajax({
					type: 'GET',
					url: path+'/data.json',
					// type of data we are expecting in return:
					dataType: 'json',
					success: function(data){
						console.log(data);
						$('#btn').attr('href',data.ios.app);
						$('#awx').attr('href',data.android.wxapp);
						$('#aapp').attr('href',data.android.app);
					},
					error: function(xhr, type){
						
					}
				});
				console.log(path);
				$('#toOther').attr('src',path+'/images/markContent.png');
				$('#img01').attr('src',path+'/images/dnew_01.jpg');
				$('#img02').attr('src',path+'/images/dnew_02.jpg');
				$('#img03').attr('src',path+'/images/dnew_03.jpg');
				$('#img04').attr('src',path+'/images/dnew_04.jpg');
				$('#img05').attr('src',path+'/images/dnew_05.jpg');
				$('#img06').attr('src',path+'/images/dnew_06.jpg');

				return;
			}
			if(browser.versions.ios || browser.versions.iPad || browser.versions.iPhone){
				location.href=path+'/apple.html';
			}
			
			if(browser.versions.android){
				location.href=path+'/android.html';
			}
		});
	</script>
</head>
<title>APP下载平台</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">td img {display: block;}</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="bkModal" style="display:none;top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%; position: fixed; z-index: 1; opacity: 0.75; background: rgb(0, 0, 0);">
	
</div>
<img src="" id="toOther" style="width:100%;z-index:2;position:absolute;right:5px;top:5px;display:none;"/>
<div id="andModal" style="text-align:center;display:none;top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%; position: fixed; z-index: 1; opacity: 0.75; background: rgb(0, 0, 0);">
	<span style="color:white">请使用其他浏览器打开下载！</span>
</div>
<table   border="0" cellpadding="0" cellspacing="0" class="img">
	<tr>
		<td>
			<img id="img01" class="img"></td>
	</tr>
	<tr>
		<td>
			<img id="img02" class="img"></td>
	</tr>
	<tr>
		<td><a id="btn" href=""><img id="img03" class="img"></a></td>
	</tr>
	<tr>
		<td>
			<img id="img04" class="img"></td>
	</tr>
	<tr>
		<td><a id="awx" href=""><img id="img05"  class="img"></a></td>
	</tr>
	<tr>
		<td><a id="aapp" href=""><img id="img06" class="img"></a></td>
	</tr>
</table>
</body>
</html>
